﻿
namespace OperationPlugins.Applications.Models
{
    public sealed class AppInstallation
    {
        /// <summary>
        /// The application id.
        /// </summary>
        public string AppId { get; set; }

        /// <summary>
        /// The application name.
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// The application version or null if not defined.
        /// </summary>
        public string Version { get; set; }

        /// <summary>
        /// Use the default connection string? If the value is false, then <see cref="ConnectionString"/> will be used.
        /// </summary>
        public bool UseDefaultConnectionString { get; set; }

        /// <summary>
        /// The connection string for this application installation.
        /// </summary>
        public string ConnectionString { get; set; }

        /// <summary>
        /// The database name.
        /// </summary>
        public string DatabaseName { get; set; }

        /// <summary>
        /// Is the application enabled or disabled?
        /// </summary>
        public bool IsEnabled { get; set; }
    }
}
